﻿using BCCommon;
using BCCommon.FreightEnums;
using System;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Common.Area
{
    /// <summary>
    /// 省份请求对象模型
    /// </summary>
    public class ProvinceRequestDto
    {
        /// <summary>
        /// 省份Id
        /// </summary>
        [Display(Name ="省份编码")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [RegularExpression(RegexPatterns.NUMBER,ErrorMessage ="{0} 应全部为数字")]
        public string ProvinceCode { get; set; }

        /// <summary>
        /// 省份名称
        /// </summary>
        [Display(Name = "省份名称")]
        [Required(ErrorMessage = "{0} 不能为空")]
        [StringLength(50, ErrorMessage = "{0} 长度最大为50位")]
        public string ProvinceName { get; set; }

        /// <summary>
        /// 省份热度
        /// </summary>
        [Display(Name = "省份热地")]
        [Required(ErrorMessage = "{0} 不能为空")]
        public int ProvinceHeatLevel { get; set; }

        /// <summary>
        /// 省份易回货类型
        /// </summary>
        [Display(Name = "省份易回货等级")]
        public EasyBackGoodsType ProvinceEasyBackGoods { get; set; }
        /// <summary>
        /// 经度
        /// </summary>
        public double? Longitude { get; set; }
        /// <summary>
        /// 纬度
        /// </summary>
        public double? Latitude { get; set; }
    }
}
